package _17作业._抽象类t2;

public abstract  class Person {
    private String id;
    private String name;
    private double Salary;

    public abstract String work();

    public abstract String eat();

    public Person() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return Salary;
    }

    public void setSalary(double salary) {
        Salary = salary;
    }

    public Person(String id, String name, double salary) {
        this.id = id;
        this.name = name;
        Salary = salary;
    }

    @Override
    public String toString() {
        return "工号为：" + id  +
                ", 姓名为：" + name  +
                "工资为：" + Salary;
    }
}
